<?php
class Msg{

	static function showMsg($url,$msg,$sec="2"){
		$msgStr = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<html xmlns="http://www.w3.org/1999/xhtml">
		<head>
		<meta http-equiv="refresh" content="'.$sec.';url='.$url.'" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>msg</title>
		</head>
		<body>
		<div style="background-color:#fff;width:350px;height:180px;font-size:12px;border:1px solid #e0e0e0;margin:20% auto;line-height:1.5em;">
			<div style="background-color:#09C;height:30px;line-height:30px;padding-left:10px;color:#fff;">消息</div>
			<div style="padding:20px;text-align:center;color:#333">
		  		<p>'.$msg.'</p>
		  	 	<p>如果浏览器没有自动跳转，请点击<a href="'.$url.'" style="color:orange;">'.$url.'</a>进行跳转</p>
		  	</div>
		</div>
		</body>
		</html>';

		echo $msgStr;
		exit();

	}

}



